<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Home In Manchester</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description_mc" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<link href="assets/css/docs.css" rel="stylesheet">
<link href="assets/js/google-code-prettify/prettify.css"
	rel="stylesheet">

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="assets/js/html5shiv.js"></script>
    <![endif]-->

<style>
body {
	font-family: 微软雅黑;
	font-size: 14px;
}

.nav-list {
	margin-top: 0px;
}
h4{
	margin-top:25px;
}
</style>
</head>

<body data-spy="scroll" data-target=".bs-docs-sidebar">

	<!-- Navbar
    ================================================== -->
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<button type="button" class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<div class="nav-collapse collapse">
					<ul class="nav">
						<li class=""><a href="index.html">首页</a></li>
						<li class="active"><a href="live.html">生活信息</a></li>
						<li class=""><a href="func.html">实用功能</a></li>
						<li class=""><a href="forum.html">娱乐交友</a></li>
						<li class=""><a href="study.html">学术讨论</a></li>
						<li class=""><a href="member.html">会员管理</a></li>
						<li class=""><a href="bookFood.html">订餐系统</a></li>
						<li class=""><a href="ticket.html">票务系统</a></li>
						<li class=""><a href="coupon.html">优惠券</a></li>
						<li class=""><a href="readme.html">补充说明</a></li>
						<li class=""><a href="extend.html">扩展功能</a></li>
						<li class=""><a href="advert.html">广告</a></li>
						<li class=""><a href="report.html">公告系统</a></li>
						<li class=""><a href="radio.html">电台系统</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<!-- Subhead
================================================== -->
	<header class="jumbotron subhead" id="overview">
		<div class="container">
			<h1>客户端接口调用指南</h1>
			<p class="lead">web客户端、移动客户端获取和设置服务器数据的统一接口访问规范。符合restful的api设计范式，提供跨平台的基于http协议的一致web接口。</p>
		</div>
	</header>


	<div class="container">

		<!-- Docs nav
    ================================================== -->
		<div class="row">
			<div class="span3 bs-docs-sidebar">
				<h3>生活信息API</h3>
				<ul class="nav nav-list bs-docs-sidenav">
					<li><a href="#sort"><i class="icon-chevron-right"></i>
							获取全部分类API</a></li>
					<li><a href="#infos"><i class="icon-chevron-right"></i>
							获取信息列表API</a></li>
					<li><a href="#info"><i class="icon-chevron-right"></i>
							获取某个信息API</a></li>
					<li><a href="#details"><i class="icon-chevron-right"></i>
							获取信息富文本API</a></li>
					<li><a href="#function"><i class="icon-chevron-right"></i>
							功能分类信息描述</a></li>
				</ul>

			</div>
			<div class="span9">



				<!-- Typography
        ================================================== -->
				<section id="sort">
					<div class="page-header">
						<h1>获取全部分类API</h1>
					</div>
					
					<h3>1 功能说明</h3>
					<p>获取生活信息栏目的全部一级分类以及它们的子分类。</p>
					<p>如：公交路线、火车时刻、打车、常用电话、球赛、超市、电影院、医疗、维修、保洁等等。</p>
					
					<br></br>
					<h3>2 接口调用说明</h3>
					<h4>2.1 URL</h4>
					<p>正式环境：http://[域名]/api/live/sorts</p>
					<p>测试环境：http://115.29.250.136:8080/homeInManchester/api/live/sorts</p>
					<h4>2.2  返回格式</h4>
					<p>json</p>
					<h4>2.3 http请求方式</h4>
					<p>GET</p>
					<h4>2.4 参数说明</h4>
					<p>(1) 公共参数 。详情可以参考 <a href="index.html#public_args">公共参数说明</a></p>
					<p>(2) 私有参数。</p>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">是否必填</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>parentId</td>
								<td>选填</td>
								<td>Integer</td>
								<td>标识该信息所属上级的信息分类。如果不设置该参数，则为请求全部分类信息；如果设置parentId，则请求该类目下的所有子分类，如parentId=140,则为所属餐厅的子分类。</td>
							</tr>
							
						</tbody>
					</table>
					<h4>2.5 请求示例</h4>
					<p><code>http://115.29.250.136:8080/homeInManchester/api/live/sorts</code></p>
					<p>或者:</p>
					<p>
					<code>http://115.29.250.136:8080/homeInManchester/api/live/sorts?parentId=140</code>
					</p>
					
					<h4>2.6 返回参数说明</h4>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>sortId</td>
								<td>Integer</td>
								<td>分类唯一标识。</td>
							</tr>
							<tr>
								<td>sortName</td>
								<td>String</td>
								<td>分类名称（如：打车、常用电话、商场、足球场等等）</td>
							</tr>
							<tr>
								<td>sortNum</td>
								<td>Integer</td>
								<td>显示序号。该分类显示的先后顺序</td>
							</tr>
							<tr>
								<td>sortPic</td>
								<td>String</td>
								<td>分类小图标的服务器链接地址，如：<code>http://115.29.250.136:8080/homeInManchester/resources/img/logo.png</code>。</td>
							</tr>
							<tr>
								<td>sortParent</td>
								<td>Integer</td>
								<td>上级分类标识。如果值为0，则代表是一级分类，上面没有父分类。</td>
							</tr>
							<tr>
								<td>funCode</td>
								<td>Integer</td>
								<td>功能分类标识。功能分类我们目前一共分为四大块：常用信息、地址类信息、综合类信息、球赛类信息。不同的功能分类表示了不同的内容显示格式。详情参见下面：2.10  <a href="live.html#the-parent">功能分类说明</a>，如果值为0，则表示该分类还有子分类，为子分类提供功能分类即可。</td>
							</tr>
							<tr>
								<td>sortDesc</td>
								<td>String</td>
								<td>分类的详细信息描述。</td>
							</tr>
							<tr>
								<td>children</td>
								<td>List</td>
								<td>子分类列表。</td>
							</tr>
							<tr style="color:red">
								<td>type</td>
								<td>Integer</td>
								<td>大类区分。此为新增字段，如果为0则为生活信息分类；如果为1则为二手交易分类。</td>
							</tr>
						</tbody>
					</table>
					
					<h4 >2.7 错误返回码说明</h4>
					<p>公共错误返回码：参考 ： <a href="index.html#public-code">公共返回码说明</a> 。 </p>
					<p>私有错误返回码：暂无。</p>
					
					<h4>2.8 正确返回示例：</h4>
						
						<pre>
[
    {
        "sortParent": 0, 
        "funCode": 1, 
        "sortId": 1, 
        "sortName": "打车", 
        "sortNum": 1, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 1, 
        "sortId": 2, 
        "sortName": "常用电话", 
        "sortNum": 2, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 0, 
        "sortId": 3, 
        "sortName": "电影", 
        "sortNum": 3, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [
            {
                "sortParent": 3, 
                "funCode": 2, 
                "sortId": 31, 
                "sortName": "影院", 
                "sortNum": 31, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }, 
            {
                "sortParent": 3, 
                "funCode": 3, 
                "sortId": 32, 
                "sortName": "上映", 
                "sortNum": 32, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }
        ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 2, 
        "sortId": 4, 
        "sortName": "保洁", 
        "sortNum": 4, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 2, 
        "sortId": 5, 
        "sortName": "维修", 
        "sortNum": 5, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 2, 
        "sortId": 6, 
        "sortName": "驾校", 
        "sortNum": 6, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 2, 
        "sortId": 7, 
        "sortName": "图书馆", 
        "sortNum": 7, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 2, 
        "sortId": 8, 
        "sortName": "足球场", 
        "sortNum": 8, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 2, 
        "sortId": 9, 
        "sortName": "超市", 
        "sortNum": 9, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 2, 
        "sortId": 10, 
        "sortName": "商场", 
        "sortNum": 10, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 2, 
        "sortId": 11, 
        "sortName": "周边景点", 
        "sortNum": 11, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 3, 
        "sortId": 12, 
        "sortName": "接机", 
        "sortNum": 12, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 3, 
        "sortId": 13, 
        "sortName": "图书馆开放时间", 
        "sortNum": 13, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 0, 
        "sortId": 14, 
        "sortName": "购物指南", 
        "sortNum": 14, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [
            {
                "sortParent": 14, 
                "funCode": 3, 
                "sortId": 141, 
                "sortName": "衣物", 
                "sortNum": 141, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }, 
            {
                "sortParent": 14, 
                "funCode": 3, 
                "sortId": 142, 
                "sortName": "鲜蔬肉", 
                "sortNum": 142, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }, 
            {
                "sortParent": 14, 
                "funCode": 3, 
                "sortId": 143, 
                "sortName": "日用", 
                "sortNum": 143, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }, 
            {
                "sortParent": 14, 
                "funCode": 3, 
                "sortId": 144, 
                "sortName": "工具", 
                "sortNum": 144, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }, 
            {
                "sortParent": 14, 
                "funCode": 3, 
                "sortId": 145, 
                "sortName": "保健", 
                "sortNum": 145, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }
        ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 0, 
        "sortId": 15, 
        "sortName": "酒店住店", 
        "sortNum": 15, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [
            {
                "sortParent": 15, 
                "funCode": 3, 
                "sortId": 151, 
                "sortName": "注意", 
                "sortNum": 151, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }, 
            {
                "sortParent": 15, 
                "funCode": 3, 
                "sortId": 152, 
                "sortName": "住宿方式推荐", 
                "sortNum": 152, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }, 
            {
                "sortParent": 15, 
                "funCode": 3, 
                "sortId": 153, 
                "sortName": "网站推荐", 
                "sortNum": 153, 
                "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
                "sortDesc": "说明性文字", 
                "children": [ ]
            }
        ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 3, 
        "sortId": 16, 
        "sortName": "公交路线", 
        "sortNum": 16, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 3, 
        "sortId": 17, 
        "sortName": "火车时刻", 
        "sortNum": 17, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }, 
    {
        "sortParent": 0, 
        "funCode": 3, 
        "sortId": 18, 
        "sortName": "飞机时刻", 
        "sortNum": 18, 
        "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
        "sortDesc": "说明性文字", 
        "children": [ ]
    }
]
</pre>
					<h4>2.9 错误返回示例</h4>
					<pre>
{
	"code":1000,
	"msg":"网络错误，http请求异常。"
}
					</pre>
					
					
				</section>


<!-- Code
        ================================================== -->
				<section id="infos">
					<div class="page-header">
						<h1>获取信息内容API</h1>
					</div>
					<h3>1 功能说明</h3>
					<p>获取各个分类下的具体信息列表</p>
					<p>例如，要获取常见的联系电话、打车电话等。</p>
					<p>如果有子分类，则返回某个分类子分类，并显示子分类下的所有信息内容。</p>
					<p>返回的信息内容根据其所属的功能分类不同而不同，具体请参考下面的详细描述。</p>
					
					<br></br>
					<h3>2 接口调用说明</h3>
					<h4>2.1 URL</h4>
					<p>正式环境：http://[域名]/api/live/infos</p>
					<p>测试环境：http://115.29.250.136:8080/homeInManchester/api/live/infos</p>
					<h4>2.2  返回格式</h4>
					<p>json</p>
					<h4>2.3 http请求方式</h4>
					<p>GET</p>
					<h4>2.4 参数说明</h4>
					<p>(1) 公共参数 。详情可以参考 <a href="index.html#public_args">公共参数说明</a></p>
					<p>(2) 私有参数。</p>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">是否必填</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>sortId</td>
								<td>必填</td>
								<td>Integer</td>
								<td>标识该信息所属的信息分类。一般来说，这里的分类均为一级分类，当然也可以是二级分类。</td>
							</tr>
							<tr>
								<td>hasDetail</td>
								<td>选填</td>
								<td>Integer</td>
								<td>如果值为1，表示查询结果含有detail（富文本）信息；如果值为0，则不含有detail信息。默认为不含。</td>
							</tr>
						</tbody>
					</table>
					
					<h4>2.5 请求示例</h4>
					<code>http://115.29.250.136:8080/homeInManchester/api/live/infos?sortId=1</code>或者
					<code>http://115.29.250.136:8080/homeInManchester/api/live/infos?sortId=1&hasDetail=1</code>
					
					<h4>2.6 返回参数说明</h4>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>sortId</td>
								<td>Integer</td>
								<td>分类ID。</td>
							</tr>
							<tr>
								<td>funCode</td>
								<td>Integer</td>
								<td>标识该信息的所属功能分类ID，功能分类参考：<a href="live.html#the-parent">功能分类说明</a>，不同的功能分类，信息的具体展示格式不同。</td>
							</tr>
							<tr>
								<td>sortName</td>
								<td>String</td>
								<td>分类名称。</td>
							</tr>
							<tr>
								<td>children</td>
								<td>List</td>
								<td>该分类的二级分类。</td>
							</tr>
							<tr>
								<td>sortPic</td>
								<td>String</td>
								<td>分类图片</td>
							</tr>
							<tr>
								<td>sortDesc</td>
								<td>String</td>
								<td>分类描述</td>
							</tr>
							<tr>
								<td>infos</td>
								<td>List</td>
								<td>信息详细列表。根据funCode不同，对应的信息格式不一样。如果funCode=1：标识常用信息，返回数据格式参考：<a href="live.html#the-common">常用信息返回格式</a>；
								如果funCode=2：表示地址类信息，返回数据格式参考<a href="live.html#the-address">地址类信息返回格式</a>；
								如果funCode=3:表示综合类信息，返回数据格式参考<a href="live.html#the-simple">综合类信息返回格式</a>；
								如果funCode=4:表示球赛类信息，返回数据格式参考<a href="live.html#the-ball">球赛类信息返回格式</a>；
								</td>
							</tr>
						</tbody>
					</table>
					
					<h4 >2.7 错误返回码说明</h4>
					<p>公共错误返回码：参考 ： <a href="index.html#public-code">公共返回码说明</a> 。 </p>
					<p>私有错误返回码：暂无。</p>
					
					<h4>2.8 正确返回示例：</h4>
						<code>http://115.29.250.136:8080/homeInManchester/api/live/infos?sortId=1</code>
						<pre>
{
    "sortParent": 0, 
    "infos": [
        {
            "phone": "15509098989", 
            "infoId": 1, 
            "sortId": 1, 
            "name": "李武宇", 
            "description_mc": "这里是描述信息"
        }, 
        {
            "phone": "15809098989", 
            "infoId": 2, 
            "sortId": 1, 
            "name": "马云", 
            "description_mc": "这里是描述信息"
        }, 
        {
            "phone": "15509098989", 
            "infoId": 3, 
            "sortId": 1, 
            "name": "滕华云", 
            "description_mc": "这里是描述信息"
        }
    ], 
    "funCode": 1, 
    "sortId": 1, 
    "sortName": "打车", 
    "sortNum": 1, 
    "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
    "sortDesc": "说明性文字", 
    "children": [ ]
}
						</pre>
					
					
					<code>http://115.29.250.136:8080/homeInManchester/api/live/infos?sortId=2</code>
						<pre>
{
    "sortParent": 0, 
    "infos": [
        {
            "phone": "15509098989", 
            "infoId": 4, 
            "sortId": 2, 
            "name": "曼城旅游局", 
            "description_mc": "这里是描述信息"
        }, 
        {
            "phone": "15509098989", 
            "infoId": 5, 
            "sortId": 2, 
            "name": "曼城机场", 
            "description_mc": "这里是描述信息"
        }
    ], 
    "funCode": 1, 
    "sortId": 2, 
    "sortName": "常用电话", 
    "sortNum": 2, 
    "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
    "sortDesc": "说明性文字", 
    "children": [ ]
}
						</pre>
						
						<code>http://115.29.250.136:8080/homeInManchester/api/live/infos?sortId=3</code>
						<pre>
{
    "sortParent": 0, 
    "infos": [
        {
            "phone": "15509098989", 
            "details": "&lt;p&gt;hello ,boy&lt;/p&gt;&lt;font color=red&gt;how are you&lt;/font&gt;", 
            "mapKey": "曼彻斯特", 
            "weblink": "http://www.baidu.com", 
            "pic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
            "infoId": 6, 
            "workTime": "8:00 - 11:00", 
            "sortId": 3, 
            "address": "曼城某某路", 
            "title": "曼城世纪风电影院"
        }
    ], 
    "funCode": 0, 
    "sortId": 3, 
    "sortName": "电影", 
    "sortNum": 3, 
    "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
    "sortDesc": "说明性文字", 
    "children": [
        {
            "sortParent": 3, 
            "infos": [
                {
                    "phone": "15509098989", 
                    "details": "&lt;p&gt;hello ,boy&lt;/p&gt;&lt;font color=red&gt;how are you&lt;/font&gt;", 
                    "mapKey": "曼彻斯特", 
                    "weblink": "http://www.baidu.com", 
                    "pic": "xxxxx.png", 
                    "infoId": 6, 
                    "workTime": "8:00 - 11:00", 
                    "sortId": 3, 
                    "address": "曼城某某路", 
                    "title": "曼城世纪风电影院"
                }
            ], 
            "funCode": 2, 
            "sortId": 31, 
            "sortName": "影院", 
            "sortNum": 31, 
            "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
            "sortDesc": "说明性文字", 
            "children": [ ]
        }, 
        {
            "sortParent": 3, 
            "infos": null, 
            "funCode": 3, 
            "sortId": 32, 
            "sortName": "上映", 
            "sortNum": 32, 
            "sortPic": "http://115.29.250.136:8080/homeInManchester/resources/img/logo.png", 
            "sortDesc": "说明性文字", 
            "children": [ ]
        }
    ]
}
						</pre>
						
					<h4>2.9 错误返回示例</h4>
					<pre>
{
	"code":1000,
	"msg":"网络错误，http请求异常。"
}
					</pre>
					<code>http://115.29.250.136:8080/homeInManchester/api/live/infos</code>
					<pre>
{
    "msg": "Required int parameter 'sortId' is not present", 
    "object": null, 
    "code": "1001"
}
					</pre>

				</section>
				
				<section id="info">
					<div class="page-header">
						<h1>获取信息具体内容API</h1>
					</div>
					<h3>1 功能说明</h3>
					<p>获取具体信息内容</p>
					
					
					<br></br>
					<h3>2 接口调用说明</h3>
					<h4>2.1 URL</h4>
					<p>正式环境：http://[域名]/api/live/info</p>
					<p>测试环境：http://115.29.250.136:8080/homeInManchester/api/live/info</p>
					<h4>2.2  返回格式</h4>
					<p>json</p>
					<h4>2.3 http请求方式</h4>
					<p>GET</p>
					<h4>2.4 参数说明</h4>
					<p>(1) 公共参数 。详情可以参考 <a href="index.html#public_args">公共参数说明</a></p>
					<p>(2) 私有参数。</p>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">是否必填</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>infoId</td>
								<td>必填</td>
								<td>Integer</td>
								<td>信息ID。</td>
							</tr>
							<tr>
								<td>sortId</td>
								<td>必填</td>
								<td>Integer</td>
								<td>标识该信息所属的直接分类。根据该字段，可以判断信息类型。</td>
							</tr>
							<tr>
								<td>hasDetail</td>
								<td>选填</td>
								<td>Integer</td>
								<td>如果值为1，表示查询结果含有detail（富文本）信息；如果值为0，则不含有detail信息。默认为不含。</td>
							</tr>
						</tbody>
					</table>
					
					<h4>2.5 请求示例</h4>
					<code>http://115.29.250.136:8080/homeInManchester/api/live/info?sortId=1&hasDetail=1</code>
					
					<h4>2.6 返回参数说明</h4>
					<p>返回info对象。具体对象类型，根据sortId所标识的功能码来区分</p>
					
					<h4 >2.7 错误返回码说明</h4>
					<p>公共错误返回码：参考 ： <a href="index.html#public-code">公共返回码说明</a> 。 </p>
					<p>私有错误返回码：暂无。</p>
					
					<h4>2.8 正确返回示例：</h4>
						<code>http://115.29.250.136:8080/homeInManchester/api/live/info&sortId=1</code>
						<pre>

						</pre>
					
					
						
					<h4>2.9 错误返回示例</h4>
					<pre>
{
	"code":1000,
	"msg":"网络错误，http请求异常。"
}
					</pre>
					

				</section>
				
				<section id="details">
					<div class="page-header">
						<h1>获取信息富文本API</h1>
					</div>
					<h3>1 功能说明</h3>
					<p>获取信息富文本</p>
					
					<br></br>
					<h3>2 接口调用说明</h3>
					<h4>2.1 URL</h4>
					<p>正式环境：http://[域名]/api/live/info/details</p>
					<p>测试环境：http://115.29.250.136:8080/homeInManchester/api/live/info/details</p>
					<h4>2.2  返回格式</h4>
					<p>json</p>
					<h4>2.3 http请求方式</h4>
					<p>GET</p>
					<h4>2.4 参数说明</h4>
					<p>(1) 公共参数 。详情可以参考 <a href="index.html#public_args">公共参数说明</a></p>
					<p>(2) 私有参数。</p>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">是否必填</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>sortId</td>
								<td>必填</td>
								<td>Integer</td>
								<td>标识该信息所属的信息分类。</td>
							</tr>
							<tr>
								<td>infoId</td>
								<td>必填</td>
								<td>Integer</td>
								<td>信息标识。</td>
							</tr>
						</tbody>
					</table>
					
					<h4>2.5 请求示例</h4>
					<code>http://115.29.250.136:8080/homeInManchester/api/live/info/details?sortId=1&infoId=1</code>
					<h4>2.6 返回参数说明</h4>
					<p>返回格式为：{"value":"富文本内容..."}</p>
					
					<h4 >2.7 错误返回码说明</h4>
					<p>公共错误返回码：参考 ： <a href="index.html#public-code">公共返回码说明</a> 。 </p>
					<p>私有错误返回码：暂无。</p>
					
					

				</section>

				<!-- Code
        ================================================== -->
				<section id="function">
					<h1 id="the-parent">功能分类信息描述</h1>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>中文名称</th>
								<th width="100">类型</th>
								<th>代码标识</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>常用信息</td>
								<td>Integer</td>
								<td>1</td>
							</tr>
							<tr>
								<td>地址类信息</td>
								<td>Integer</td>
								<td>2</td>
							</tr>
							<tr>
								<td>综合类信息</td>
								<td>Integer</td>
								<td>3</td>
							</tr>
							<tr>
								<td>球赛类信息</td>
								<td>Integer</td>
								<td>4</td>
							</tr>
						</tbody>
					</table>
					
					<h4 id="the-common">1 常用信息类数据返回格式</h4>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>sortId</td>
								<td>Integer</td>
								<td>所属分类ID。</td>
							</tr>
							<tr style="background:#F6811B;color:white;">
								<td>sortName</td>
								<td>Integer</td>
								<td>所属分类名称。
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<strong>新增字段</strong>
								</td>
							</tr>
							<tr>
								<td>infoId</td>
								<td>Integer</td>
								<td>信息唯一标识。</td>
							</tr>
							<tr>
								<td>name</td>
								<td>String</td>
								<td>联系人姓名。</td>
							</tr>
							<tr>
								<td>phone</td>
								<td>String</td>
								<td>联系人电话。如果存在多个电话，多个电话之间采用空格隔开。</td>
							</tr>
							<tr>
								<td>description_mc</td>
								<td>String</td>
								<td>简要描述</td>
							</tr>
						</tbody>
					</table>
					
					<h4 id="the-address">2 地址类信息数据返回格式</h4>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>sortId</td>
								<td>Integer</td>
								<td>所属分类ID。分类具体包括电影院、商场、药房等等，具体可以通过后台设置。</td>
							</tr>
							<tr style="background:#F6811B;color:white;">
								<td>sortName</td>
								<td>Integer</td>
								<td>所属分类名称。
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<strong>新增字段</strong>
								</td>
							</tr>
							<tr>
								<td>infoId</td>
								<td>Integer</td>
								<td>信息唯一标识</td>
							</tr>
							<tr>
								<td>title</td>
								<td>String</td>
								<td>信息标题，如XXX超市。</td>
							</tr>
							<tr>
								<td>address</td>
								<td>String</td>
								<td>地址。</td>
							</tr>
							<tr>
								<td>mapKey</td>
								<td>String</td>
								<td>地图关键词。这里指的是标识该区域的地理位置精确描述，可以通过手机端UC Map等地图进行精确定位的关键词。如果不填，则可以根据信息标题或者地址进行定位。</td>
							</tr>
							<tr>
								<td>phone</td>
								<td>String</td>
								<td>联系电话。客户端需要提取有效电话信息，提供拨打功能。如果存在多个电话，多个电话之间采用空格隔开。</td>
							</tr>
							<tr>
								<td>workTime</td>
								<td>String</td>
								<td>营业时间。</td>
							</tr>
							<tr>
								<td>pic</td>
								<td>String</td>
								<td>该区域的照片缩略图，提供服务器端web链接地址，如：<code>xxxxxx.jpg</code>。需要自己前面追加服务器地址路径如：http://115.29.250.136:8080/homeInManchester/resources/fileupload/xxxxx.jpg</td>
							</tr>
							<tr>
								<td>weblink</td>
								<td>String</td>
								<td>官方web地址链接。</td>
							</tr>
							<tr>
								<td>details</td>
								<td>Text</td>
								<td>带html标记的详细描述。</td>
							</tr>
							<tr class="info">
								<td>praiseBaseCount</td>
								<td>Integer</td>
								<td>点赞基数，此数据只有在后台设置有效。
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<strong><font color=red>更新时间：2014-09-21</font></strong>
								</td>
							</tr>
							<tr class="info">
								<td>praiseCount</td>
								<td>Integer</td>
								<td>点赞总数，该数据为所有评论者点赞累加后，再加上点赞基数之和。
								
								<strong><font color=red>更新时间：2014-09-21</font></strong>
								</td>
							</tr>
							<tr class="info">
								<td>commentBaseCount</td>
								<td>Integer</td>
								<td>评论基数，此数据只有在后台设置有效。
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<strong><font color=red>更新时间：2014-09-21</font></strong>
								</td>
							</tr>
							<tr class="info">
								<td>commentCount</td>
								<td>Integer</td>
								<td>总评论数，该数据为所有评论者评论累加后，再加上评论基数之和。
								<strong><font color=red>更新时间：2014-09-21</font></strong>
								</td>
							</tr>
						</tbody>
					</table>
					
					<h4 id="the-simple">3 综合类信息数据返回格式</h4>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>sortId</td>
								<td>Integer</td>
								<td>所属分类ID。</td>
							</tr>
							<tr style="background:#F6811B;color:white;">
								<td>sortName</td>
								<td>Integer</td>
								<td>所属分类名称。
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<strong>新增字段</strong>
								</td>
							</tr>
							<tr>
								<td>infoId</td>
								<td>Integer</td>
								<td>信息唯一标识。</td>
							</tr>
							<tr>
								<td>title</td>
								<td>String</td>
								<td>标题。</td>
							</tr>
							<tr>
								<td>weblink</td>
								<td>String</td>
								<td>官方web地址链接。</td>
							</tr>
							<tr>
								<td>description_mc</td>
								<td>String</td>
								<td>简要描述</td>
							</tr>
							<tr>
								<td>details</td>
								<td>Text</td>
								<td>带html标记的文本说明。</td>
							</tr>
							<tr class="info">
								<td>praiseBaseCount</td>
								<td>Integer</td>
								<td>点赞基数，此数据只有在后台设置有效。
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<strong><font color=red>更新时间：2014-09-21</font></strong>
								</td>
							</tr>
							<tr class="info">
								<td>praiseCount</td>
								<td>Integer</td>
								<td>点赞总数，该数据为所有评论者点赞累加后，再加上点赞基数之和。
								
								<strong><font color=red>更新时间：2014-09-21</font></strong>
								</td>
							</tr>
							<tr class="info">
								<td>commentBaseCount</td>
								<td>Integer</td>
								<td>评论基数，此数据只有在后台设置有效。
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<strong><font color=red>更新时间：2014-09-21</font></strong>
								</td>
							</tr>
							<tr class="info">
								<td>commentCount</td>
								<td>Integer</td>
								<td>总评论数，该数据为所有评论者评论累加后，再加上评论基数之和。
								<strong><font color=red>更新时间：2014-09-21</font></strong>
								</td>
							</tr>
						</tbody>
					</table>
					
					<h4 id="the-ball">4 球赛类信息数据返回格式</h4>
					<table class="table table-bordered">
						<thead>
							<tr>
								<th width="120">参数名称</th>
								<th width="100">类型</th>
								<th>含义说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>sortId</td>
								<td>Integer</td>
								<td>所属分类ID。</td>
							</tr>
							<tr>
								<td>sortName</td>
								<td>Integer</td>
								<td>所属分类名称。</td>
							</tr>
							<tr>
								<td>infoId</td>
								<td>Integer</td>
								<td>信息唯一标识。</td>
							</tr>
							<tr>
								<td>ballType</td>
								<td>Integer</td>
								<td>比赛类型，目前默认为4个，后期再拓展。1：世界杯；2：欧冠；3：意甲；4：英超</td>
							</tr>
							<tr>
								<td>name</td>
								<td>String</td>
								<td>比赛标题</td>
							</tr>
							<tr>
								<td>hostName</td>
								<td>String</td>
								<td>主场队</td>
							</tr>
							<tr>
								<td>custName</td>
								<td>String</td>
								<td>客场队</td>
							</tr>
							<tr>
								<td>hostIcon</td>
								<td>String</td>
								<td>主场队的图标</td>
							</tr>
							<tr>
								<td>custIcon</td>
								<td>String</td>
								<td>客场队的图标</td>
							</tr>
							<tr>
								<td>date</td>
								<td>String</td>
								<td>比赛日期</td>
							</tr>
							<tr>
								<td>time</td>
								<td>String</td>
								<td>比赛时间</td>
							</tr>
							<tr>
								<td>place</td>
								<td>String</td>
								<td>比赛地点</td>
							</tr>
							<tr>
								<td>description_mc</td>
								<td>String</td>
								<td>比赛详细描述。</td>
							</tr>
						</tbody>
					</table>
				</section>

			</div>
		</div>

	</div>



	<!-- Footer
    ================================================== -->
	<footer class="footer">
		<div class="container">
			<p>
				Designed and built with all the love in the world by <a
					href="http://www.hcrazy.com" target="_blank">@hsmart</a>
			</p>
			<ul class="footer-links">
				<li><a href="http://www.hcrazy.com">Blog</a></li>
				<li class="muted">&middot;</li>
				<li><a href="http://www.hcrazy.com">Issues</a></li>
				<li class="muted">&middot;</li>
				<li><a href="http://www.hcrazy.com">Changelog</a></li>
			</ul>
		</div>
	</footer>



	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="assets/js/jquery.js"></script>
	<script src="assets/js/bootstrap-transition.js"></script>
	<script src="assets/js/bootstrap-alert.js"></script>
	<script src="assets/js/bootstrap-modal.js"></script>
	<script src="assets/js/bootstrap-dropdown.js"></script>
	<script src="assets/js/bootstrap-scrollspy.js"></script>
	<script src="assets/js/bootstrap-tab.js"></script>
	<script src="assets/js/bootstrap-tooltip.js"></script>
	<script src="assets/js/bootstrap-popover.js"></script>
	<script src="assets/js/bootstrap-button.js"></script>
	<script src="assets/js/bootstrap-collapse.js"></script>
	<script src="assets/js/bootstrap-carousel.js"></script>
	<script src="assets/js/bootstrap-typeahead.js"></script>
	<script src="assets/js/bootstrap-affix.js"></script>

	<script src="assets/js/holder/holder.js"></script>
	<script src="assets/js/google-code-prettify/prettify.js"></script>

	<script src="assets/js/application.js"></script>



</body>
</html>
